const {defineConfig} = require('@vue/cli-service')
const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = defineConfig({
    // runtimeCompiler: true,
    transpileDependencies: true,
    publicPath: './',
    outputDir: resolve('../resources/static'),
    devServer: {
      port: 9999,
      client: {
        overlay: false,
      },
      proxy: {
        '/api': {
          target: 'http://localhost:8081',
          changeOrigin: true,
          pathRewrite: {
            '^/api': '/api'
          }
        }
      }
    }
  }
)
